<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for("update_adventure_sum", $form->getObject()) ?>" method="post">
    <?php echo $form['sum']->renderLabel() ?>
    <div class="in">
        <?php echo $form['sum']->render() ?>
        <?php if($form['sum']->renderError() != NULL): ?>
            <div class="ui-state-error">
                <?php echo $form['sum']->renderError() ?>
            </div>
        <?php endif; ?>
    </div>
    
    <?php echo $form['_csrf_token']; ?><br/>
    <input class="btn primary" type="submit" value="Editer" />
</form>